//
//  YWLocationManager.h
//  maintain
//
//  Created by 郑想 on 16/2/27.
//  Copyright © 2016年 ewin. All rights reserved.
//
#import <CoreLocation/CoreLocation.h>
#import "YWSingleton.h"
#import <Foundation/Foundation.h>

typedef void (^YWMapLocatingCompletionBlock)(NSString* locationInfo, NSError* error, CLLocation* location);

@interface YWLocationManager : NSObject
YWSingletonH(Manager)
/**
 *  第一次调用 会询问是否 允许访问位置信息
 */
- (void)startMapLocationSever;
/**
 *  设置定位的精度
 */
- (void)setUpLocationAccuracy:(CLLocationAccuracy)accuracy;
/**
 *  开始定位
 */
- (void)locationInfoWithCompletionBlock:(YWMapLocatingCompletionBlock)block;
/**
 *  取消定位
 */
- (void)cancelLocationServer;
@end
